<?
include('../core/core.php');

Core::Init(PageType::ADMIN);

/**
 * Autoloader klas
 *
 * @param unknown_type $className
 */


function classAutoload($className) {

	Core::LoadClass($className);

}
spl_autoload_register('classAutoload');


//$logger = LoggerManager::getLogger(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : __FILE__);
Core::LoadSmarty();

$scripts = array();

Registry::Set('javascript', $scripts);

Router::$controllerMethodSeek = false;
Router::$popParamUnpaired = false;
Router::$reverseRoute = true;

$front = new FrontController();

$front->SetTitleDelimiter(' - ');
$front->AddTitle('Mediaflex Framework');
$front->AddTitle('Administracja');

$front->FlipTitle();

$front->Dispatch();

Core::Garbage();
